package lesson_one;

/**
 * @author LvHengChang
 * version 1.0
 * @description: Larger Number
 */

public class LargerDemo {
    public static int larger(int x, int y) {
        if (x > y) {
            return x;
        } else {
            return y;
        }
//        return Math.max(x, y);
    }

    public static double larger(double x, double y) {
        if (x > y) {
            return x;
        } else {
            return y;
        }
//        return Math.max(x, y);
    }

    public static void main(String[] args) {
        System.out.println(larger(75, -865));

    }
}
